import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    menus: [],
    loginId: '',
    permissionList: [],
    regionList: []
  },
  mutations: {
    increment (state) {
      state.count++
    },
    generalMenus (state, transferMenus) {
      state.menus = transferMenus
    },
    generalLoginMsg (state, loginUserId) {
      state.loginId = loginUserId
    },
    generalAmazonRegionList (state, regionList) {
      state.regionList = regionList
    }

  },
  actions: {
  },
  modules: {
  }
})
